package com.dy.drp.mapper;

import com.dy.drp.dto.BuyinfoDto;
import com.dy.drp.entity.Buyinfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.drp.util.PageUtil;
import com.dy.drp.util.SelectUtil;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dy
 * @since 2022-04-02
 */
@Mapper
public interface BuyinfoMapper extends BaseMapper<Buyinfo> {
    Integer insertOneBuyInfo(Buyinfo buyinfo);

    List<BuyinfoDto> selectOnePageBuyinfo(PageUtil<BuyinfoDto> pageUtil);

    List<BuyinfoDto> selectOnePageBuyinfoByInfo(SelectUtil selectUtil);

    BuyinfoDto selectOneBuyById(Long buyId);
}
